package website.lhc.decorator;

import lombok.extern.slf4j.Slf4j;

/**
 * @author: longhc@citycloud.com.cn
 * @since: 2023/1/4 16:19
 * @version: 1.0
 */
@Slf4j
public class RedShapeDecorator extends ShapeDecorator {

    public RedShapeDecorator(Shape shape) {
        super(shape);
    }

    public void doBeforeLog() {
        log.info("RedShapeDecorator-doBeforeLog");
    }

    public void doAfterLog() {
        log.info("RedShapeDecorator-doAfterLog");
    }

    @Override
    public void draw() {
        doBeforeLog();
        super.draw();
        doAfterLog();
    }
}
